package com.iwinding.ladygg.modle.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by hezhiyong on 2017/4/13.
 */

public class JpushSosBean implements Parcelable {

    public String userId;
    public String messagetype;
    public String sosId;
    public String headImg;
    public String address;
    public String nickName;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userId);
        dest.writeString(this.messagetype);
        dest.writeString(this.sosId);
        dest.writeString(this.headImg);
        dest.writeString(this.address);
        dest.writeString(this.nickName);
    }

    public JpushSosBean() {
    }

    protected JpushSosBean(Parcel in) {
        this.userId = in.readString();
        this.messagetype = in.readString();
        this.sosId = in.readString();
        this.headImg = in.readString();
        this.address = in.readString();
        this.nickName = in.readString();
    }

    public static final Parcelable.Creator<JpushSosBean> CREATOR = new Parcelable.Creator<JpushSosBean>() {
        @Override
        public JpushSosBean createFromParcel(Parcel source) {
            return new JpushSosBean(source);
        }

        @Override
        public JpushSosBean[] newArray(int size) {
            return new JpushSosBean[size];
        }
    };
}
